<!DOCTYPE html>
<html lang="en" ng-app="smartOlwApp">
<head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<title>sedejornadagrado Grado</title>
		<link rel="stylesheet" type="text/css" href="../../css/smart_icons_styles.css">
	  	<link rel="stylesheet" type="text/css" href="../../css/smart_menu.css">
	  	<link rel="stylesheet" type="text/css" href="../../css/smart_general.css">
	  	<link rel="stylesheet" type="text/css" href="../../css/smart_tabladatos.css">
	  	
	  	<link rel="stylesheet" type="text/css" href="../../js/ngdialog-0.2.3/ngDialog.css">
	  	<link rel="stylesheet" type="text/css" href="../../js/ngdialog-0.2.3/ngDialog-theme-default.css">
		<link rel="stylesheet" type="text/css" href="../../js/ngdialog-0.2.3/ngDialog-theme-plain.css">
	  	
        <!-- Importarmos angular JS -->
        <script type="text/javascript" src="../../js/jquery/jquery-1.8.3.min.js"></script>
    	<script type="text/javascript" src="../../js/main/template.js"></script>
    	<script type="text/javascript" src="../../js/angular-1.4.7/angular.min.js"></script>
    	<script type="text/javascript" src="../../js/ngdialog-0.2.3/ngDialog.min.js"></script> 
    	
    	<!-- importar script para las funciones del formulario -->
    	<script type="text/javascript" src="../smart_maestros/script/maestro_app.js"></script>
		<script type="text/javascript" src="../smart_maestros/script/maestro_service.js"></script>
		<script type="text/javascript" src="script/sedejornadas_controller.js"></script>
		
</head>
<body ng-controller="sedejornadajornadaCtrl">
			<div class="col-md-10" id="frame">
		<div class="panel panel-primary ng-scope">
   
		    <div class="panel-heading">Configuración De Jornadas
		 	<a href="#"><span class="img"><img src="../../imagene/eliminar.png" style="float:right;"  ng-click="eliminar(sedejornada)" title = "Eliminar sedejornadas"></span></a>
		 	<a href="#"><span class="img"><img src="../../imagene/limpiar.png" style="float:right;"   ng-click="limpiar(sedejornada)" title= "Limpiar"></span></a>
		 	<a href="#"><span class="img"><img src="../../imagene/consultar.png" style="float:right;" ng-click="consultar(sedejornada)" title= "Consultar sedejornada"></span></a>
		 	<a href="#"><span class="img"><img src="../../imagene/guardar.png" style="float:right;"   ng-click="grabar(sedejornada)" title= "Guardar sedejornada"></span></a>
		  </div>
		  <div class="panel-body">
		   <input id="scsedejornada" type="text" class="texto" ng-model="sedejornada.scsedejornada" style = "display:none;">
               
                <div class = "alert alert-danger alert-dismissable" id="messageBox">
                	<h4>{{titulo_mensajes}}</h4> {{descripcion_mensajes}}
                	<a href="#"><span class="imagen"><img src="../../imagene/bombilla-incandescente32.png"  ng-click="showModal()"></span></a>
				</div>
					<div class="col-md-10 panel panel-primary ng-scope"  style="height: 150px;">
						<table style="width:100%; vertical-align: middle;">
							<tr>
								<td style="width:25%; vertical-align: middle;">
									<label  class="label">País *</label><br/>
									<select id="scpais" class="seleccion" ng-model="scpais" ng-options="option.scpais as option.dspais for option in paises" ng-change="cargarDepartamentos()">
									</select>
								</td>
								<td style="width:25%; vertical-align: middle;">
									<label  class="label">Departamento *</label><br/>
									<select id="dsdepartamento" class="seleccion" ng-model="dsdepartamento" ng-options="option.scdepartamento as option.dsdepartamento for option in departamentos" ng-change="cargarCiudades()">
									</select>
								</td>
								<td style="width:25%; vertical-align: middle;">
									<label  class="label">Ciudad *</label><br/>
									<select id="scciudad" class="seleccion" ng-model="scciudad" ng-options="option.scciudad as option.dsciudad for option in ciudades" ng-change="cargarNucleos()">
									</select>
								</td>
								<td width="25%" height="100%">
									<label>Nucleo*</label><br/>
									<select  id="nucleoeducativodto" class="seleccion" ng-model="nucleoeducativodto" ng-options="option.scnucleoeducativo as option.dsnucleoeducativo for option in nucleos" ng-change="cargarInstituciones()">
									</select>
								</td>
							</tr>
							
							<tr style = "vertical-align: middle;">
								<td width="25%" height="100%">
									<label>Institución*</label><br/>
									<select  id="smartInstitucion" class="seleccion" ng-model="smartInstitucion" ng-options="option.scinstitucion as option.dsinstitucion for option in instituciones" ng-change="cargarSedes()">
									</select>
								</td>	
								<td width="25%">
									<label class="" >Sede*</label><br/>	
									<select class="seleccion" id="scsedes" style="width:240px;" ng-model="sedejornada.scsedes" ng-options="option.smScsede as option.smDssede for option in sedes">
									</select>
								</td>
								<td>
									<label class="" >Jornadas*</label><br/>	
									<select class="seleccion" id="scjornadas" style="width:240px;" ng-model="sedejornada.scjornadas"  ng-options="option.scdatmestro as option.dsdatmaestro for option in jornadas">
									</select>
								</td>
							</tr>
						</table>
					</div>
					<div class="container">				
					<table class = "tabledatos">
							<thead>
								<tr>
								   
									<th style="width: 150px;" scope="col" >Institución</th>
									<th style="width: 150px;" scope="col" >sedejornada</th>
									 <th style="width: 250px;" scope="col" >Jornadas</th>
									 <th style="width: 50px;" scope="col" >Acción</th>
									
								</tr>
							</thead>
							<tbody class="tbody">
								<tr ng-show="jornadas_sedes.length == 0">
									<th colspan="5" style="text-align:center;">
										No se encontraron sedejornada seleccionadas
									</th>
								</tr>
							
								<tr ng-repeat="d in jornadas_sedes | orderBy : 'dssedejornada'">

									    <td style = "display:none;">
										  {{d.scsedesjornadas}}
										</td>
										<td style="width: 150px;">
										  {{d.scsedes.smartInstitucion.dsinstitucion}}
										</td>
										<td style="width: 150px;">
										  {{d.scsedes.smDssede}}
										</td>
										<td style ="width: 250px;">
										  {{d.scjornadas.dsdatmaestro}}
										</td>											
										<td class="botonera-table" style="width: 50px;">
										<a href="#"><span class="img"><img src="../../imagene/verifique-signo24.png" style="float:center;" ng-click="seleccionar(d)" title ="Editar"></span></a>
										</td>						
								</tr>
							</tbody>
						</table>
						</div>
  
  </div>
</div> 
</div>
</body>
</html>